<template>
  <div>
    <h3 class="deal-title">{{ props.title }}</h3>

    <TagIcon
      title="对抗案例想定总体描述项"
      v-if="props.title === '数据处理前'"
    />
    <TagIcon title="导引头初始部署信息项" :style="styleObject" v-else />
    <el-descriptions :column="1" size="large">
      <el-descriptions-item label="对抗类型">{{sourceObject?.sampleAdversItemVO?.adversMode}}</el-descriptions-item>
      <el-descriptions-item label="干扰装备使用方式">
        {{sourceObject.sampleAdversItemVO?.interfEquipUsageMeth}}
      </el-descriptions-item>
      <el-descriptions-item label="作战想定场景"> {{sourceObject.sampleAdversItemVO?.scenarioDes}} </el-descriptions-item>
      <el-descriptions-item label="干扰机理"> {{sourceObject.sampleAdversItemVO?.interfMechanism}} </el-descriptions-item>
    </el-descriptions>

    <TagIcon title="导引头初始部署信息项" v-if="props.title === '数据处理前'" />
    <TagIcon title="导引头初始部署信息项" :style="styleObject" v-else />
    <el-descriptions :column="1" size="large">
      <el-descriptions-item label="导引头型号">{{sourceObject.dytInitialDeployInfoVO?.dytName}}</el-descriptions-item>
      <el-descriptions-item label="开机距离">{{sourceObject.dytInitialDeployInfoVO?.powerUpDistance}}</el-descriptions-item>
      <el-descriptions-item label="工作频段"> {{sourceObject.dytInitialDeployInfoVO?.workingRange}} </el-descriptions-item>
      <el-descriptions-item label="工作带宽"> {{sourceObject.dytInitialDeployInfoVO?.workingBandwidth}} </el-descriptions-item>
      <el-descriptions-item label="重复周期"> {{sourceObject.dytInitialDeployInfoVO?.pulseWidth}} </el-descriptions-item>
      <el-descriptions-item label="弹道类型"> {{sourceObject.dytInitialDeployInfoVO?.ballisticType}} </el-descriptions-item>
      <el-descriptions-item label="突防干扰装备"> {{sourceObject.dytInitialDeployInfoVO?.peneInterEquip}} </el-descriptions-item>
      <el-descriptions-item label="导引头初始位置">
        {{sourceObject.dytInitialDeployInfoVO?.dytInitiaPosition}}
      </el-descriptions-item>
      <el-descriptions-item label="捷变方式"> {{sourceObject.dytInitialDeployInfoVO?.agileMethod}} </el-descriptions-item>
      <el-descriptions-item label="被动作用距离(最大)">
        {{sourceObject.dytInitialDeployInfoVO?.maxPassiveRange}}
      </el-descriptions-item>
      <el-descriptions-item label="俯仰测角精度-被动">
        {{sourceObject.dytInitialDeployInfoVO?.passiveElevAccuracy}}
      </el-descriptions-item>
      <el-descriptions-item label="测距精度"> {{sourceObject.dytInitialDeployInfoVO?.distanceAccuracy}} </el-descriptions-item>
      <el-descriptions-item label="运动速度"> {{sourceObject.dytInitialDeployInfoVO?.runningSpeed}} </el-descriptions-item>
      <el-descriptions-item label="雷达体制"> {{sourceObject.dytInitialDeployInfoVO?.radarStyle}} </el-descriptions-item>
      <el-descriptions-item label="工作频率"> {{sourceObject.dytInitialDeployInfoVO?.workingFreq}} </el-descriptions-item>
      <el-descriptions-item label="极化"> {{sourceObject.dytInitialDeployInfoVO?.polarization}} </el-descriptions-item>
      <el-descriptions-item label="脉冲宽度"> {{sourceObject.dytInitialDeployInfoVO?.beamWidth}} </el-descriptions-item>
      <el-descriptions-item label="发射动能"> {{sourceObject.dytInitialDeployInfoVO?.launchKinEnergy}} </el-descriptions-item>
      <el-descriptions-item label="装订信息"> {{sourceObject.dytInitialDeployInfoVO?.bindingInformation}} </el-descriptions-item>
      <el-descriptions-item label="导引头目指位置信息">
        {{sourceObject.dytInitialDeployInfoVO?.dytTargetPosition}}
      </el-descriptions-item>
      <el-descriptions-item label="测角类型"> {{sourceObject.dytInitialDeployInfoVO?.angleMeasType}} </el-descriptions-item>
      <el-descriptions-item label="成像识别距离(最大)">
        {{sourceObject.dytInitialDeployInfoVO?.maxImagingIdentRange}}
      </el-descriptions-item>
      <el-descriptions-item label="方位测角精度-主动">
        {{sourceObject.dytInitialDeployInfoVO?.activeAziAccuracy}}
      </el-descriptions-item>
      <el-descriptions-item label="信干比"> {{sourceObject.dytInitialDeployInfoVO?.signalNoiseRatio}} </el-descriptions-item>
      <el-descriptions-item label="导引头类型"> {{sourceObject.dytInitialDeployInfoVO?.dytType}} </el-descriptions-item>
      <el-descriptions-item label="信号类型"> {{sourceObject.dytInitialDeployInfoVO?.signalType}} </el-descriptions-item>
      <el-descriptions-item label="功率"> {{sourceObject.dytInitialDeployInfoVO?.power}} </el-descriptions-item>
      <el-descriptions-item label="工作策略"> {{sourceObject.dytInitialDeployInfoVO?.workStrategy}} </el-descriptions-item>
      <el-descriptions-item label="波束宽度"> {{sourceObject.dytInitialDeployInfoVO?.waveWidth}} </el-descriptions-item>
      <el-descriptions-item label="发射速度"> {{sourceObject.dytInitialDeployInfoVO?.launchSpeed}} </el-descriptions-item>
      <el-descriptions-item label="抗干扰策略"> {{sourceObject.dytInitialDeployInfoVO?.antiInterMeaStr}} </el-descriptions-item>
      <el-descriptions-item label="其 他"> {{sourceObject.dytInitialDeployInfoVO?.elseInfo}} </el-descriptions-item>
      <el-descriptions-item label="主动作用距离(最大)">
        {{sourceObject.dytInitialDeployInfoVO?.maxActiveRange}}
      </el-descriptions-item>
      <el-descriptions-item label="方位测角精度-被动">
        {{sourceObject.dytInitialDeployInfoVO?.passiveAziAccuracy}}
      </el-descriptions-item>
      <el-descriptions-item label="俯仰测角精度-主动">
        {{sourceObject.dytInitialDeployInfoVO?.activeElevAccuracy}}
      </el-descriptions-item>
    </el-descriptions>

    <TagIcon title="目标初始部署信息项" v-if="props.title === '数据处理前'" />
    <TagIcon title="导引头初始部署信息项" :style="styleObject" v-else />
    <el-descriptions :column="1" size="large">
      <el-descriptions-item label="目标数量">{{sourceObject.targetInitialDeployInfoVO?.targetQuantity}}</el-descriptions-item>
      <el-descriptions-item label="目标平均大小"> {{sourceObject.targetInitialDeployInfoVO?.averageTargetSize}} </el-descriptions-item>
      <el-descriptions-item label="目标初始位置信息">
        {{sourceObject.targetInitialDeployInfoVO?.targetInitialPositionInfo}}
      </el-descriptions-item>
      <el-descriptions-item label="目标舰种"> {{sourceObject.targetInitialDeployInfoVO?.targetShipType}} </el-descriptions-item>
      <el-descriptions-item label="目标编队"> {{sourceObject.targetInitialDeployInfoVO?.targetFormation}} </el-descriptions-item>
      <el-descriptions-item label="目标初始姿态信息">
        {{sourceObject.targetInitialDeployInfoVO?.targetInitialAttitudeInfo}}
      </el-descriptions-item>
      <el-descriptions-item label="目标型号"> {{sourceObject.targetInitialDeployInfoVO?.targetType}} </el-descriptions-item>
      <el-descriptions-item label="编队队形"> {{sourceObject.targetInitialDeployInfoVO?.formationFormation}} </el-descriptions-item>
      <el-descriptions-item label="海域内其他舰船信息">
        {{sourceObject.targetInitialDeployInfoVO?.otherShipsInfo}}
      </el-descriptions-item>
    </el-descriptions>

    <TagIcon
      title="作战背景环境初始信息项"
      v-if="props.title === '数据处理前'"
    />
    <TagIcon title="导引头初始部署信息项" :style="styleObject" v-else />
    <el-descriptions :column="1" size="large">
      <el-descriptions-item label="交战地点">{{sourceObject.battleEnviInitialInfoVO?.battleLocation}}</el-descriptions-item>
      <el-descriptions-item label="气温"> {{sourceObject.battleEnviInitialInfoVO?.temperature}} </el-descriptions-item>
      <el-descriptions-item label="海水盐度"> {{sourceObject.battleEnviInitialInfoVO?.seawaterSalinity}} </el-descriptions-item>
      <el-descriptions-item label="风向"> {{sourceObject.battleEnviInitialInfoVO?.windDirection}} </el-descriptions-item>
      <el-descriptions-item label="交战环境"> {{sourceObject.battleEnviInitialInfoVO?.battleBackgroundEnvi}} </el-descriptions-item>
      <el-descriptions-item label="海况等级"> {{sourceObject.battleEnviInitialInfoVO?.seaLevel}} </el-descriptions-item>
      <el-descriptions-item label="能见度"> {{sourceObject.battleEnviInitialInfoVO?.visibility}} </el-descriptions-item>
      <el-descriptions-item label="云雨雾雪情况"> {{sourceObject.battleEnviInitialInfoVO?.weatherConditions}} </el-descriptions-item>
      <el-descriptions-item label="天气类型"> {{sourceObject.battleEnviInitialInfoVO?.weatherType}} </el-descriptions-item>
      <el-descriptions-item label="海水温度"> {{sourceObject.battleEnviInitialInfoVO?.seaTemperature}} </el-descriptions-item>
      <el-descriptions-item label="风力"> {{sourceObject.battleEnviInitialInfoVO?.windForce}} </el-descriptions-item>
    </el-descriptions>

    <div v-if="props.interferType === '舰载有源干扰-雷达'">
      <TagIcon
        title="干扰装备初始部署信息项(舰载有源干扰装备)"
        v-if="props.title === '数据处理前'"
      />
      <TagIcon title="导引头初始部署信息项" :style="styleObject" v-else />
      <el-descriptions :column="1" size="large">
        <el-descriptions-item label="装备型号">{{sourceObject.shipborneInitVO?.equipmentModel}}</el-descriptions-item>
        <el-descriptions-item label="发射器部署位置信息">
          {{sourceObject.shipborneInitVO?.platformLocationInfo}}
        </el-descriptions-item>
        <el-descriptions-item label="侦察侧向频段">
          {{sourceObject.shipborneInitVO?.scoutSidelobeRange}}
        </el-descriptions-item>
        <el-descriptions-item label="接收机灵敏度">
          {{sourceObject.shipborneInitVO?.sensitivityLevel}}
        </el-descriptions-item>
        <el-descriptions-item label="干扰技术产生">
          {{sourceObject.shipborneInitVO?.interEmissionMethod}}
        </el-descriptions-item>
        <el-descriptions-item label="装备类型"> {{sourceObject.shipborneInitVO?.equipmentType}} </el-descriptions-item>
        <el-descriptions-item label="有效辐射功率"> {{sourceObject.shipborneInitVO?.effectiveRadiatedPower}} </el-descriptions-item>
        <el-descriptions-item label="侦察空间范围">
          {{sourceObject.shipborneInitVO?.scoutSpaceRange}}
        </el-descriptions-item>
        <el-descriptions-item label="干扰频段"> {{sourceObject.shipborneInitVO?.disruptionBand}} </el-descriptions-item>
        <el-descriptions-item label="最大作用距离">
          {{sourceObject.shipborneInitVO?.maxEffectiveRange}}
        </el-descriptions-item>
        <el-descriptions-item label="装备部署平台">
          {{sourceObject.shipborneInitVO?.equipmentPlatform}}
        </el-descriptions-item>
        <el-descriptions-item label="工作体制"> {{sourceObject.shipborneInitVO?.workingSystem}} </el-descriptions-item>
        <el-descriptions-item label="测向精度"> {{sourceObject.shipborneInitVO?.azimuthAccuracy}} </el-descriptions-item>
        <el-descriptions-item label="具备的干扰样式">
          {{sourceObject.shipborneInitVO?.interModes}}
        </el-descriptions-item>
        <el-descriptions-item label="最大同时干扰目标数">
          {{sourceObject.shipborneInitVO?.maxInterTarget}}
        </el-descriptions-item>
      </el-descriptions>
    </div>

    <div v-if="props.interferType === '舷外有源干扰-雷达'">
      <TagIcon
        title="干扰装备初始部署信息项(舷外有源干扰装备)"
        v-if="props.title === '数据处理前'"
      />
      <TagIcon title="导引头初始部署信息项" :style="styleObject" v-else />
      <el-descriptions :column="1" size="large">
        <el-descriptions-item label="装备型号">{{sourceObject.outboardInitVO?.equipmentModel}}</el-descriptions-item>
        <el-descriptions-item label="发射器部署位置信息">
          {{sourceObject.outboardInitVO?.platformLocationInfo}}
        </el-descriptions-item>
        <el-descriptions-item label="侦察侧向频段">
          {{sourceObject.outboardInitVO?.scoutSidelobeRange}}
        </el-descriptions-item>
        <el-descriptions-item label="接收机灵敏度">
          {{sourceObject.outboardInitVO?.sensitivityLevel}}
        </el-descriptions-item>
        <el-descriptions-item label="干扰技术产生">
          {{sourceObject.outboardInitVO?.disturbTelProduct}}
        </el-descriptions-item>
        <el-descriptions-item label="装备类型"> {{sourceObject.outboardInitVO?.equipType}} </el-descriptions-item>
        <el-descriptions-item label="辐射功率"> {{sourceObject.outboardInitVO?.radiantPower}} </el-descriptions-item>
        <el-descriptions-item label="侦察空间范围">
          {{sourceObject.outboardInitVO?.scoutSpaceRange}}
        </el-descriptions-item>
        <el-descriptions-item label="干扰频段"> {{sourceObject.outboardInitVO?.interFrequencyBand}} </el-descriptions-item>
        <el-descriptions-item label="最大作用距离">
          {{sourceObject.outboardInitVO?.maxEffectiveRange}}
        </el-descriptions-item>
        <el-descriptions-item label="装备部署平台">
          {{sourceObject.outboardInitVO?.equitPlatform}}
        </el-descriptions-item>
        <el-descriptions-item label="工作体制"> {{sourceObject.outboardInitVO?.workingSystem}} </el-descriptions-item>
        <el-descriptions-item label="测向精度"> {{sourceObject.outboardInitVO?.sidePrecision}} </el-descriptions-item>
        <el-descriptions-item label="具备的干扰样式">
          {{sourceObject.outboardInitVO?.disturbStyle}}
        </el-descriptions-item>
        <el-descriptions-item label="最大同时干扰目标数">
          {{sourceObject.outboardInitVO?.maxInterTarget}}
        </el-descriptions-item>
        <el-descriptions-item label="悬停时间"> {{sourceObject.outboardInitVO?.hoverTime}} </el-descriptions-item>
      </el-descriptions>
    </div>

    <div v-if="props.interferType === '箔条干扰-雷达'">
      <TagIcon
        title="干扰装备初始部署信息项(箔条干扰)"
        v-if="props.title === '数据处理前'"
      />
      <TagIcon title="导引头初始部署信息项" :style="styleObject" v-else />
      <el-descriptions :column="1" size="large">
        <el-descriptions-item label="装备型号">{{sourceObject.chaffJammingInitVO?.equipmentModel}}</el-descriptions-item>
        <el-descriptions-item label="发射器部署位置信息">
          {{sourceObject.chaffJammingInitVO?.platformLocationInfo}}
        </el-descriptions-item>
        <el-descriptions-item label="箔条云外形"> {{sourceObject.chaffJammingInitVO?.chaffCloudShape}} </el-descriptions-item>
        <el-descriptions-item label="射程"> {{sourceObject.chaffJammingInitVO?.firingRange}} </el-descriptions-item>
        <el-descriptions-item label="发射架数"> {{sourceObject.chaffJammingInitVO?.launcherCount}} </el-descriptions-item>
        <el-descriptions-item label="装备类型"> {{sourceObject.chaffJammingInitVO?.equipmentType}} </el-descriptions-item>
        <el-descriptions-item label="干扰波段"> {{sourceObject.chaffJammingInitVO?.interBand}} </el-descriptions-item>
        <el-descriptions-item label="箔条云尺寸"> {{sourceObject.chaffJammingInitVO?.chaffCloudSize}} </el-descriptions-item>
        <el-descriptions-item label="发射管口径"> {{sourceObject.chaffJammingInitVO?.launchPipeSize}} </el-descriptions-item>
        <el-descriptions-item label="储弹箱数"> {{sourceObject.chaffJammingInitVO?.roundCapacity}} </el-descriptions-item>
        <el-descriptions-item label="装备部署平台">
          {{sourceObject.chaffJammingInitVO?.equipmentPlatform}}
        </el-descriptions-item>
        <el-descriptions-item label="留空时间"> {{sourceObject.chaffJammingInitVO?.holdDuration}} </el-descriptions-item>
        <el-descriptions-item label="发射仰角"> {{sourceObject.chaffJammingInitVO?.launchAngle}} </el-descriptions-item>
        <el-descriptions-item label="发射形式"> {{sourceObject.chaffJammingInitVO?.launchType}} </el-descriptions-item>
      </el-descriptions>
    </div>

    <div v-if="props.interferType === '角反干扰-雷达'">
      <TagIcon
        title="干扰装备初始部署信息项(角反干扰)"
        v-if="props.title === '数据处理前'"
      />
      <TagIcon title="导引头初始部署信息项" :style="styleObject" v-else />
      <el-descriptions :column="1" size="large">
        <el-descriptions-item label="装备型号">{{sourceObject.cornerReflectorInitVO?.equipmentModel}}</el-descriptions-item>
        <el-descriptions-item label="发射器部署位置信息">
          {{sourceObject.cornerReflectorInitVO?.platformLocationInfo}}
        </el-descriptions-item>
        <el-descriptions-item label="使用方式"> {{sourceObject.cornerReflectorInitVO?.useMethod}} </el-descriptions-item>
        <el-descriptions-item label="布设形式"> {{sourceObject.cornerReflectorInitVO?.arrangeMethod}} </el-descriptions-item>
        <el-descriptions-item label="配备数量"> {{sourceObject.cornerReflectorInitVO?.equipmentCount}} </el-descriptions-item>
        <el-descriptions-item label="装备类型"> {{sourceObject.cornerReflectorInitVO?.equipmentType}} </el-descriptions-item>
        <el-descriptions-item label="雷达截面积RCS">
          {{sourceObject.cornerReflectorInitVO?.holdDuration}}
        </el-descriptions-item>
        <el-descriptions-item label="发射距离"> {{sourceObject.cornerReflectorInitVO?.launchDistance}} </el-descriptions-item>
        <el-descriptions-item label="布设时间"> {{sourceObject.cornerReflectorInitVO?.arrangeTime}} </el-descriptions-item>
        <el-descriptions-item label="装备部署平台">
          {{sourceObject.cornerReflectorInitVO?.equipmentPlatform}}
        </el-descriptions-item>
        <el-descriptions-item label="干扰波段"> {{sourceObject.cornerReflectorInitVO?.interBand}} </el-descriptions-item>
        <el-descriptions-item label="角反尺寸"> {{sourceObject.cornerReflectorInitVO?.cornerReflectorSize}} </el-descriptions-item>
        <el-descriptions-item label="滞留时间"> {{sourceObject.cornerReflectorInitVO?.stayTime}} </el-descriptions-item>
      </el-descriptions>
    </div>
  </div>
</template>

<script lang="ts" setup>
import TagIcon from '@/components/tag-icon/index.vue';
import { onMounted, reactive, ref, watch } from 'vue';
const styleObject = reactive({visibility: 'hidden'})
const props = defineProps({
  title: { type: String, default: '' },
  interferType: { type: String, default: '舰载有源干扰-雷达' },
  dealDataSources: {
    type: Object,
    default: () => {
      return {};
    },
  },
});

const sourceObject = ref<any>({})

watch(
  () => props.dealDataSources,
  (newValue, oldValue) => {
    sourceObject.value = newValue.staticPara;
  }
);

</script>

<style lang="scss" scoped>
.deal-title {
  font-size: 16px;
  color: #303133;
  margin-bottom: 20px;
}
:deep() {
  .el-descriptions__label {
    width: 150px;
    display: inline-block;
    text-align: right;
  }
  .el-descriptions__content {
    color: #000;
  }
}
</style>
